package com.dss.dsc.server;

import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ContextHandlerCollection;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.eclipse.jetty.webapp.WebAppContext;

import com.dss.dsc.serlvet.SystemForViewServlet;

@SuppressWarnings("unused")
public class ServletContextServer {
	public static void main(String[] args) throws Exception {
		Server server = new Server(8080);

		ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
		context.setContextPath("/WebRoot");
		server.setHandler(context);

		context.addServlet(new ServletHolder(new SystemForViewServlet()), "/system");
		server.start();
		server.join();
	}
}
